﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Hr.Models;
using Hr.Models.Common;

namespace Hr.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Title = "人事导航页";
            return View();
        }

        public ActionResult SysTableList()
        {
            ViewBag.Title = "项目表格";
            return View();
        }

        public JsonResult SysTableQuery()
        {
            var lst = new List<SysTable>();
            var table = new SysTable();
            table.ObjectId = "sys001";
            table.TableName = "SysTable";
            table.Description = "用于维护项目的数据表结构";
            lst.Add(table);
            var data = new { rows = lst };
            return new MyJson(data);
        }
    }
}